<?php
class Training_Form_Guide extends Zend_Form{
    
//    public function init() {
//        
//    }
    
    public function __construct($arrParam = null, $options = null) {
        parent::__construct();
        
        $this->setMethod('post')
             ->setEnctype('multipart/form-data')
             ->setAction('')
             ->setName('appForm');
        
        //================= Zend_Form_Element_Text =====================
        $textBox = new Zend_Form_Element_Text('textbox');
        $textBox->setLabel('Text box:')
                ->setDescription('Hien thi textbox bang zend form')
                ->setValue('This is a test')
                ->setAttrib('class', 'txtmedium')
                ->setAttribs(array('onchange'=>'onSubmit', 'style'=>'border: solid 1px #ccc'));
        $this->addElements(array($textBox));
    }
    
}
